package com.easy.common.bean;

import com.baomidou.mybatisplus.annotation.*;
import com.easy.common.enumbean.Gender;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;


@Data
@TableName("customers")
public class Customer extends BaseBean implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer id;

    @TableField(value = "name", condition = SqlCondition.LIKE)
    private String name;

    private String email;
    private String phone;
    private LocalDateTime birthday;  //格式数据  2025-04-02T12:30:00.000Z（毫秒可以不要，Z直接去掉就行）
    private Gender gender;

    @TableField(exist = false)
    private List<CustomerContact> contacts;
/*    private LocalDateTime createdAt;//驼峰自动映射到数据库列created_at
    private LocalDateTime updatedAt;//继承了Basebean  */

}
